

const {resolve,join} = require('path'); // node内置核心模块，用来设置路径。

console.log(9897487878)

export default function getComponent() {

  import(/* webpackChunkName: "lodash" */ "lodash")
  .then( ({default:_})=> {
    console.log("_.chunk(['a', 'b', 'c', 'd'], 2);",_.chunk(['a', 'b', 'c', 'd'], 2))
  })

  return import(/* webpackChunkName: "lazy-modules" */ "./lazy-modules")
    .then( ({default:a})=> {

      const element = document.createElement("div");
      
      console.log("lazy",a)
       
    })
    .catch(error => "An error occurred while loading the component");
}

